import request from '@/utils/request'

// post 方法
export function postMethod(params) {
  return request({
    'url': '/check/postMethod',
    headers: {
      isToken: true
    },
    method: 'post',
    timeout: 20000,
    data: params
  })
}

// get 方法
export function getMethod() {
  return request({
    'url': '/problem/getMethod',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}